package com.glls.sbdemo6.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @date 2023/5/11
 * @desc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户实体类")
public class User {

   @ApiModelProperty(value = "用户唯一标识")
   private Integer id;
   @ApiModelProperty(value = "用户姓名")
   private String name;

   private String password;

   private String sex;

   @JsonFormat(pattern = "yyyy-MM-dd")
   private Date birthday;

   private Date regisTime;
}
